package com.pentakill.mo.essay.discuss.dao.impl;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.pentakill.mo.essay.discuss.dao.dao.DiscussDao;
import com.pentakill.mo.essay.discuss.vo.DiscussModel;
import com.pentakill.mo.util.base.BaseImpl;
import com.pentakill.mo.util.base.BaseQueryModel;

public class DiscussImpl extends BaseImpl<DiscussModel> implements DiscussDao{

	@Override
	protected void doQbc(DetachedCriteria criteria, BaseQueryModel qm) {
		// TODO Auto-generated method stub
		
	}
	
	//查询当前文章的评论列表
	public List<DiscussModel> getByEmDiscuss(Integer uuid) {
		
		String hql = "from DiscussModel where essayUuid = ?";
		
		List<DiscussModel> list = this.getHibernateTemplate().find(hql,uuid);
		
		return list;
	}

}

